package admin

import database "hft/Database"

type LouPanTeSe struct {
	database.Base
	Name         string    `json:"name" gorm:"uniqueIndex"`
	ShowInSearch bool      `json:"showInSearch" gorm:"comment:是否展示在搜索中"`
	LouPan       []*LouPan `json:"loupan,omitempty" gorm:"many2many:_loupan_tese;foreignKey:Name;references:ID;constraint:OnDelete:CASCADE,OnUpdate:CASCADE"`
}

func (LouPanTeSe) TableName() string {
	return database.TableNameFormat("lou_pan_tese_list")
}
